package com.lzx.adx.report.enums;

/**
 * 58和媒体趣头条回调类型映射
 */
public enum HhTtEnum {
    activate("0", "active"),
    register("1", "active_register"),
    ply("2", "active_pay"),
    day1retention("6", "next_day_open"),
    ;

    private String productCode;

    private String hwCode;


    HhTtEnum(String productCode, String hwCode) {
        this.productCode = productCode;
        this.hwCode = hwCode;

    }

    public String getProductCode() {
        return productCode;
    }

    public String getHwCode() {
        return hwCode;
    }


    public static String getTtCode(String productCode) {
        HhTtEnum[] qttWBEnums = HhTtEnum.values();
        for (HhTtEnum qttWBEnum : qttWBEnums) {
            if (qttWBEnum.getProductCode().equals(productCode)) {
                return qttWBEnum.getHwCode();
            }
        }
        return null;
    }



}
